package com.lanou.controller;/*
 * @author 马继耿~
 * @date 2023/10/27 19:10
 * @version 1.0
 * */

import com.lanou.service.MJG_depositService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Api(value = "押金",tags = "押金")
@RestController
@RequestMapping("/deposit")
public class MJG_DepositController {
@Autowired
private MJG_depositService mjg_depositService;
@ApiOperation(value = "押金",httpMethod = "GET")
@RequestMapping("/deposits")
    public Object deposits(String pageNum, String pageSize){
    return mjg_depositService.deposit(pageNum,pageSize);
}
    @ApiOperation(value = "查询押金",httpMethod = "GET")
    @RequestMapping("/select")
    public Object select(String resourceName,String feeUser,String state,String feeItemName,String payType){
        return mjg_depositService.deposit( resourceName, feeUser, state, feeItemName, payType);
    }
    @ApiOperation(value = "查询用户名",httpMethod = "GET")
    @RequestMapping("/selectfeename")
    public Object select(String resourceName){
        return mjg_depositService.selectfeeuser(resourceName);
    }
    @ApiOperation(value = "退款",httpMethod = "GET")
    @RequestMapping("/updataState")
    public void updataState(String id){
    mjg_depositService.updatastate(id);    }
}
